package cn.ymcc.fallback;
import cn.ymcc.fegin.SearchClient;
import cn.ymcc.pojo.User;
import org.springframework.stereotype.Component;

/**
 *   处理接口出错的方法
 */
@Component
public class SearchClientFallback implements SearchClient {
    @Override
    public String test01() {
        return "出现问题了";
    }

    @Override
    public User findById(Integer id) {
        System.out.println("出问题了");
        return null;
    }

    @Override
    public User findAll(User user) {
        return null;
    }
}
